﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TimKiemDiaDiem
{
    public partial class ChonDichVuCtrl : WorkspaceUI
    {
        public ChonDichVuCtrl(MainFormUI MainForm):base(MainForm)
        {
            InitializeComponent();
            m_Context = "ChonDichVu";
        }

        public ChonDichVuCtrl()
        {
            InitializeComponent();
        }

        private void pnTimTatCa_MouseClick(object sender, MouseEventArgs e)
        {
            this.m_MainForm.LoadWorkspace(new TimKiemCtrl(this.m_MainForm));
        }

        private void pnTimATM_MouseClick(object sender, MouseEventArgs e)
        {
            TimKiemCtrl frmTimKiem = new TimKiemCtrl(this.m_MainForm);
            frmTimKiem.TenDichVu = "ATM";
            this.m_MainForm.LoadWorkspace(frmTimKiem);
        }

        private void pnTimBenXeBus_MouseClick(object sender, MouseEventArgs e)
        {
            TimKiemCtrl frmTimKiem = new TimKiemCtrl(this.m_MainForm);
            frmTimKiem.TenDichVu = "Bến xe bus";
            this.m_MainForm.LoadWorkspace(frmTimKiem);
        }

        private void pnTimBenhVien_MouseClick(object sender, MouseEventArgs e)
        {
            TimKiemCtrl frmTimKiem = new TimKiemCtrl(this.m_MainForm);
            frmTimKiem.TenDichVu = "Bệnh viện";
            this.m_MainForm.LoadWorkspace(frmTimKiem);
        }

        private void pnTimCho_MouseClick(object sender, MouseEventArgs e)
        {
            TimKiemCtrl frmTimKiem = new TimKiemCtrl(this.m_MainForm);
            frmTimKiem.TenDichVu = "Chợ";
            this.m_MainForm.LoadWorkspace(frmTimKiem);
        }

        private void pnTimKhachSan_MouseClick(object sender, MouseEventArgs e)
        {
            TimKiemCtrl frmTimKiem = new TimKiemCtrl(this.m_MainForm);
            frmTimKiem.TenDichVu = "Khách sạn";
            this.m_MainForm.LoadWorkspace(frmTimKiem);
        }

        private void pnTimNhaHang_MouseClick(object sender, MouseEventArgs e)
        {
            TimKiemCtrl frmTimKiem = new TimKiemCtrl(this.m_MainForm);
            frmTimKiem.TenDichVu = "Nhà hàng";
            this.m_MainForm.LoadWorkspace(frmTimKiem);
        }

        private void pnTimQuanAn_MouseClick(object sender, MouseEventArgs e)
        {
            TimKiemCtrl frmTimKiem = new TimKiemCtrl(this.m_MainForm);
            frmTimKiem.TenDichVu = "Quán ăn";
            this.m_MainForm.LoadWorkspace(frmTimKiem);
        }

        private void pnTimQuanCafe_MouseClick(object sender, MouseEventArgs e)
        {
            TimKiemCtrl frmTimKiem = new TimKiemCtrl(this.m_MainForm);
            frmTimKiem.TenDichVu = "Quán café";
            this.m_MainForm.LoadWorkspace(frmTimKiem);
        }

        private void pnTimShopThoiTrang_MouseClick(object sender, MouseEventArgs e)
        {
            TimKiemCtrl frmTimKiem = new TimKiemCtrl(this.m_MainForm);
            frmTimKiem.TenDichVu = "Shop thời trang";
            this.m_MainForm.LoadWorkspace(frmTimKiem);
        }

        private void pnTimTramXang_MouseClick(object sender, MouseEventArgs e)
        {
            TimKiemCtrl frmTimKiem = new TimKiemCtrl(this.m_MainForm);
            frmTimKiem.TenDichVu = "Trạm xăng";
            this.m_MainForm.LoadWorkspace(frmTimKiem);
        }

    }
}
